<template>
  <div v-if="isShow" class="mask-container">
    <van-loading v-if="loading" type="spinner" />
  </div>
</template>

<script>
export default {
  name: 'MaskContainer',
  props: {
    isShow: {
      type: Boolean,
      require: true,
      default: false
    },
    loading: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.mask-container {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(000, 000, 000, 0.4);
}
.van-loading {
  height: 100%;
  line-height: 95vh;
  text-align: center;
}
</style>
